/**
 * @param {string} s
 * @param {number} n
 * @return {string}
 */
var reverseLeftWords = function (s, n) {
  let resArry = s.split("");
  while (n) {
    let temp = resArry.unshift();
    resArry.push(temp);
  }
  return resArry.join("");
};
